package com.netintech.project.system.meeting.mapper;

import com.netintech.project.system.meeting.domain.MeetingApplication;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 会议申请Mapper接口
 *
 * @author admin
 * createTime 2020-09-18
 * lastModify admin
 * lastModifyTime 2020-09-18
 * group 电子政务小组
 */
@Repository
public interface MeetingApplicationMapper
{
    /**
     * 查询会议申请
     *
     * @param id 会议申请ID
     * @return 会议申请
     */
    MeetingApplication selectMeetingApplicationById(Long id);

    /**
     * 查询会议申请列表
     *
     * @param meetingApplication 会议申请
     * @return 会议申请集合
     */
    List<MeetingApplication> selectMeetingApplicationList(MeetingApplication meetingApplication);

    /**
     * 新增会议申请
     *
     * @param meetingApplication 会议申请
     * @return 结果
     */
    int insertMeetingApplication(MeetingApplication meetingApplication);

    /**
     * 修改会议申请
     *
     * @param meetingApplication 会议申请
     * @return 结果
     */
    int updateMeetingApplication(MeetingApplication meetingApplication);

    /**
     * 删除会议申请
     *
     * @param id 会议申请ID
     * @return 结果
     */
    int deleteMeetingApplicationById(Long id);

    /**
     * 批量删除会议申请
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteMeetingApplicationByIds(String[] ids);


    /**
     * 根据日期段查询会议申请数据
     * @param filterMap
     * @return
     */
    List<MeetingApplication> queryCalendarByDateParagraph(Map<String, Object> filterMap);

    /**
     * 查询更多
     * @param filterMap
     * @return
     */
    List<MeetingApplication> queryMore(Map<String, Object> filterMap);

    /**查询未审核的会议申请*/
    List<MeetingApplication> queryNoAuditData();

    /**根据时间段查询会议室是否冲突*/
    List<MeetingApplication> queryMeetingByApplicationTime(MeetingApplication meetingApplication);

    /**查询会议室信息*/
    List<MeetingApplication> queryMeetingRoomInfo(Map<String, Object> filterMap);

}
